﻿<UserControl x:Class="Jbe.TestSuite.TestDevices.SignalVisualizer.Presentation.VisualizerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:v="clr-namespace:Jbe.TestSuite.TestDevices.SignalVisualizer.Presentation"
    xmlns:p="clr-namespace:Jbe.TestSuite.TestDevices.SignalVisualizer.Properties"
    xmlns:i="http://www.codeplex.com/CompositeExtensions/TestSuite/Interface"
    xmlns:cae="http://www.codeplex.com/CompositeExtensions"
    cae:ResourceService.MergeSharedDictionaries="{x:Static i:ResourceHelper.SharedResourcePath}">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="11"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="11"/>
        </Grid.ColumnDefinitions>

        <v:SignalControl x:Name="signalControl" Grid.Row="0" Grid.Column="0" Grid.RowSpan="6" Margin="11,11,0,0" BorderThickness="1">
            <v:SignalControl.BorderBrush>
                <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ActiveBorderColorKey}}"/>
            </v:SignalControl.BorderBrush>
        </v:SignalControl>
        <Label Content="{x:Static p:Resources.ScaleX}" Grid.Row="0" Grid.Column="1"/>
        <TextBox Text="{Binding ScaleX, ElementName=signalControl, StringFormat=\{0:0.0\}, ValidatesOnExceptions=true}" Grid.Row="1" Grid.Column="1" Margin="11,7,0,0"/>
        <Label Content="{x:Static p:Resources.ScaleY}" Grid.Row="2" Grid.Column="1"/>
        <TextBox Text="{Binding ScaleY, ElementName=signalControl, StringFormat=\{0:0.0\}, ValidatesOnExceptions=true}" Grid.Row="3" Grid.Column="1" Margin="11,7,0,0"/>
        <Button Click="ResetButtonClick" Content="{x:Static p:Resources.ResetZoom}" Grid.Row="4" Grid.Column="1"/>
    </Grid>
</UserControl>
